#ifndef __ENCODER_H_
#define __ENCODER_H_

//函数声明
int encode_msg(int sockfd, char *msg, int msg_size);

int encode_file_msg(int sockfd, char *msg, int msg_size, char *data, int data_size);

int send_file_msg(int sockfd, char *msg, int msg_size, char *data, int data_size);

int tcp_socket_write(int fd, void *buf, int nSize);

#endif